import {ProjectStep} from "./ProjectStep";
import {ProjectData} from "./ProjectData";
import {Category} from "../../category/entity/Category";
import {User} from "./User";
export  class Project{
  public id:string;
  public title:string;
  public description:string;
  public category:Category = new Category();
  public categoryId:string;
  public hits:number;
  public countThumbsUp:string;
  public countFollow:string;
  public isNewRecord:boolean;
  public remarks:string;
  public createDate:string;
  public isOpenItem:string;
  public createBy:User = new User();
  public projectSteps:Array<ProjectStep> = new Array<ProjectStep>();
  public projectData:ProjectData = new ProjectData();
  public toString():string{
          return "id:"+this.id+" title:"+this.title+" description:"+this.description
            +" hits:"+this.hits
            +" countThumbsUp:"+this.countThumbsUp+" countFollow:"+this.countFollow
          +" isNewRecord:"+this.isNewRecord+" remarks:"+this.remarks+" createDate:"
          +this.createDate+" isOpenItem:"+this.isOpenItem+" categoryId"
            +this.categoryId+" category"+this.category.id
            +" description+"+this.description;
  }
}
